home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR10
/
ACK3D.ZIP
/
ENGINE
/
ACKENG.H
< prev
next >
Wrap
Text File
|
1993-08-21
|
2KB
|
69 lines
/* Header file for ACK3D engine routines */
/* Author: Lary Myers */
#define USE_XMS 1 /* Set to 0 if XMS not desired */
#define FP_SHIFT 16
#define FP_MULT 65536
#define FP_HALF 32768
#define VIEW_WIDTH 320
#define MAX_DISTANCE 2048
#define TYPE_WALL 0
#define TYPE_OBJECT 1
#define TYPE_PALETTE 2
#define BITMAP_WIDTH 64
#define BITMAP_HEIGHT 64
#define BITMAP_SIZE (BITMAP_WIDTH * BITMAP_HEIGHT)
#define GRID_SIZE 64
#define GRID_WIDTH 64
#define GRID_HEIGHT 64
#define GRID_MAX GRID_WIDTH * GRID_HEIGHT
#define GRID_XMAX GRID_WIDTH * GRID_SIZE
#define GRID_YMAX GRID_HEIGHT * GRID_SIZE
#define GRID_XMAXLONG (GRID_XMAX * FP_MULT)
#define GRID_YMAXLONG (GRID_YMAX * FP_MULT)
#define MAX_HEIGHT 960
#define MIN_HEIGHT 16
#define MAX_UPDOWN 30 /* Max up or down spots for each level */
#define MAP_STARTCODE 0xFC /* Force player to this square */
#define MAP_UPCODE 0xFD /* Go up to previous level */
#define MAP_DOWNCODE 0xFE /* Go down to next level */
#define MAP_GOALCODE 0xFF /* Finish line! */
#define MAX_XARRAY 10 /* Max number in XMS array */
typedef struct {
UCHAR far *Bmp; /* Pointer to real memory */
unsigned long xHandle; /* Handle to XMS memory */
int count; /* Usage count */
} XARRAY;
typedef struct {
int Number; /* Bitmap number of this wall */
int Column; /* Column of bitmap to display */
int Distance; /* Distance to this column */
int LightAdj; /* Not currently used */
} WALLARRAY;
typedef struct {
int mPos; /* Map Position */
UINT mCode; /* Special code (start,up,down,goal) */
} SPECIALCODE;
#define BYTES_PER_ROW 320
#define DWORDS_PER_ROW (BYTES_PER_ROW / 4)
#define SCREEN_SIZE 64000